package com.bingxue.edu.management.education.model.resp;

import com.bingxue.edu.management.education.model.entity.Classroom;
import com.mybatisflex.annotation.RelationManyToOne;
import com.mybatisflex.annotation.TableRef;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 教室信息
 *
 * @author panbo
 * @since 2024/07/17 19:02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "教室信息")
@TableRef(Classroom.class)
public class ClassroomResp extends Classroom {

    @RelationManyToOne(selfField = "campusId", targetTable = "base_org", targetField = "id", valueField = "name")
    @Schema(description = "校区名称")
    private String campusName;
}
